﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Collections.Generic;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace webapp4U.UI.Controls
{
    public partial class Product : System.Web.UI.UserControl
    {

        protected void Page_Load(object sender, EventArgs e)
        {
            List<webapp4U.BOL.ArticleCategory> obj = webapp4U.BOL.ArticleCategory.GetArticleCategoryByParentID(Globals.ConvertToInt32(eCategory.TinTucOnline));
            rptCategory.DataSource = obj;
            rptCategory.DataBind();
        }


        protected List<webapp4U.BOL.Article> GetItemsByCateID(int CateID)
        {
            List<webapp4U.BOL.Article> obj = webapp4U.BOL.Article.GetTop2ArticleByArticleCateID(CateID);
            return obj;
        }

    }
}